#include "DataStructure/Result/ElementalForce/QUAD8_COMPForceData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const QUAD8_COMPForceData& val1, const QUAD8_COMPForceData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_THEORY, 8)
    FIELD_COMPARE (m_LAMID)
    FIELD_COMPARE (m_FP)
    FIELD_COMPARE (m_FM)
    FIELD_COMPARE (m_FB)
    FIELD_COMPARE (m_FMAX)
    FIELD_COMPARE_ARR (m_FFLAG, 4)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const QUAD8_COMPForceData& a, const QUAD8_COMPForceData& b)
{
    return a.m_eId < b.m_eId;
}
